package org.example.elm_springboot.po;

import java.math.BigDecimal;
import java.util.List;

public class Orders {
    private Integer orderId;
    private String userId;
    private Integer businessId;
    private String orderDate;
    private BigDecimal orderTotal;
    private Integer daId;  // 送货地址编号
    private Integer orderState;  // 订单状态（0：未支付，1：已支付）
    private Business business;  // 所属商家
    private List<OrderDetailet> orderDetailetList;  // 添加订单明细列表
    
    // getter和setter
    public Integer getOrderId() {
        return orderId;
    }
    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }
    public String getUserId() {
        return userId;
    }
    public void setUserId(String userId) {
        this.userId = userId;
    }
    public Integer getBusinessId() {
        return businessId;
    }
    public void setBusinessId(Integer businessId) {
        this.businessId = businessId;
    }
    public String getOrderDate() {
        return orderDate;
    }
    public void setOrderDate(String orderDate) {
        this.orderDate = orderDate;
    }
    public BigDecimal getOrderTotal() {
        return orderTotal;
    }
    public void setOrderTotal(BigDecimal orderTotal) {
        this.orderTotal = orderTotal;
    }
    public Integer getDaId() {
        return daId;
    }
    public void setDaId(Integer daId) {
        this.daId = daId;
    }
    public Integer getOrderState() {
        return orderState;
    }
    public void setOrderState(Integer orderState) {
        this.orderState = orderState;
    }
    public Business getBusiness() {
        return business;
    }
    public void setBusiness(Business business) {
        this.business = business;
    }
    public List<OrderDetailet> getOrderDetailetList() {
        return orderDetailetList;
    }
    public void setOrderDetailetList(List<OrderDetailet> orderDetailetList) {
        this.orderDetailetList = orderDetailetList;
    }
} 